﻿@model BuyThePeople.Models.UserForJointPurchaseData

@foreach(var item in Model.JointList){
				<div id="gonggu@(item.Value.GoodsSeq)" class="gonggurow">
                <!-------------------내가 참여한 진행중인 공동구매 리스트----------->
                    @Html.HiddenFor(GoodsSeq => item.Value.GoodsSeq)                    
					<div class="gonggucol" style="width:140px;border-right: 1px solid #e8e8e8;">					
						<div  style="display: table-cell; vertical-align: middle;">					
							<p>@(item.Key.RegDate.Value.ToString("yyyy-MM-dd"))</p>
						</div>
					</div>
					<div class="gonggucol" style="width:550px;border-right: 1px solid #e8e8e8;">
						<div style="display: table-cell; vertical-align: middle;" onclick="GoUrl('@Url.Content(BuyThePeople.ConstFactory.UrlGoodsDetail)/@item.Value.GoodsSeq')">										
							<img src="@(item.Value.Image)" alt="상품이미지" >
							<span>@(item.Value.Title)</span>
                            @switch (BuyThePeople.Composition.Utils.ConvertToType<BuyThePeople.Composition.JointPurchaseStausType>(item.Key.Status))
                            {
                                case BuyThePeople.Composition.JointPurchaseStausType.None:
                                default:
							        <span></span>
                                    break;
                                case BuyThePeople.Composition.JointPurchaseStausType.Participation:
							        <span id="mypage_product_price">결제예상금액: @(item.Value.LowPrice)원</span>
                                    break;
                                case BuyThePeople.Composition.JointPurchaseStausType.Delivery:
                                case BuyThePeople.Composition.JointPurchaseStausType.Purchase:
                                case BuyThePeople.Composition.JointPurchaseStausType.Complete:
                                    <span id="mypage_product_price">결제금액: @(item.Key.Price)원</span>
                                    break;
                                case BuyThePeople.Composition.JointPurchaseStausType.Cancel:
                                    <span>결제금액: @(item.Key.Price)원</span>
                                    break;
                            }
						</div>
					</div>
					<div class="gonggucol" style="width:200px;">
						<div  style="display: table-cell; vertical-align: middle;">					
							<span>
                                @switch (BuyThePeople.Composition.Utils.ConvertToType<BuyThePeople.Composition.JointPurchaseStausType>(item.Key.Status))
                                {
                                    case BuyThePeople.Composition.JointPurchaseStausType.None:
                                    default:
                                        <strong>상태 없음</strong>
                                        break;
                                    case BuyThePeople.Composition.JointPurchaseStausType.Participation:
                                        <strong>참여중</strong>
                                        break;
                                    case BuyThePeople.Composition.JointPurchaseStausType.Purchase:
                                        <strong>배송 준비중</strong>
                                        break;
                                    case BuyThePeople.Composition.JointPurchaseStausType.Delivery:
                                        <strong>배송중</strong>
                                        break;
                                    case BuyThePeople.Composition.JointPurchaseStausType.Complete:
                                        <strong>구매 완료</strong>
                                        break;
                                    case BuyThePeople.Composition.JointPurchaseStausType.Cancel:
                                        <strong>구매 취소</strong>
                                        break;
                                }
							</span>
						</div>
					</div>
					<div style="clear:both;">
						<hr width="100%" style="border:1px dashed #ffeac7"/>
					</div>
				<!------------------------------------------------------------------------------>
				</div>
}